﻿@using Authorize.Core.Enums
@model Authorize.Application.ClientSource.Model.ClientSourceInputModel

@{
    ViewData["Title"] = "Create";
}

<h2>Create</h2>

<h4>ClientSourceInputModel</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="ClientId" class="control-label"></label>
                <input asp-for="ClientId" class="form-control" />
                <span asp-validation-for="ClientId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ClientName" class="control-label"></label>
                <input asp-for="ClientName" class="form-control" />
                <span asp-validation-for="ClientName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ClientSecrets" class="control-label"></label>
                <input asp-for="ClientSecrets" class="form-control" />
                <span asp-validation-for="ClientSecrets" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Type" class="control-label"></label>
                <select class="form-control" asp-for="Type" asp-items="Html.GetEnumSelectList<ClientType>()"></select>
                <span asp-validation-for="Type" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="RedirectUris" class="control-label"></label>
                <input asp-for="RedirectUris" class="form-control" />
                <span asp-validation-for="RedirectUris" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="PostLogoutRedirectUris" class="control-label"></label>
                <input asp-for="PostLogoutRedirectUris" class="form-control" />
                <span asp-validation-for="PostLogoutRedirectUris" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="AllowedCorsOrigins" class="control-label"></label>
                <input asp-for="AllowedCorsOrigins" class="form-control" />
                <span asp-validation-for="AllowedCorsOrigins" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="AllowedScopes" class="control-label"></label>
                <input asp-for="AllowedScopes" class="form-control" />
                <span asp-validation-for="AllowedScopes" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">Back to List</a>
</div>

@section scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
